Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GL Renderer : Fix custom mesh light texture visualisations #6066

Merged

Conversation

johnhaddon
Copy link
Member

These were broken by cfc3857, where we assumed that such visualisations should be rendered with the Display color space. This led to them being rendered after the main Scene color space, meaning that the depth test prevented the texture visualisation from being seen. We now use a heuristic that means such visualisations are rendered first in Scene color space instead.

In theory we could extend the Visualiser API to allow two states to be specified - one for Display space and one for Scene space. But that would require an ABI break, and we want this fix to go into 1.3. We also have so few uses for the visualisation state that it seems like overkill at this point.

Fixes #6002.

Note : I've made this PR to 1.3_maintenance but have only been able to test on 1.4_maintenance. My CentOS 7 distrobox setup for legacy testing was refusing to find my NVIDIA card today.

These were broken by cfc3857, where we assumed that such visualisations should be rendered with the Display color space. This led to them being rendered after the main Scene color space, meaning that the depth test prevented the texture visualisation from being seen. We now use a heuristic that means such visualisations are rendered first in Scene color space instead.

In theory we could extend the Visualiser API to allow two states to be specified - one for Display space and one for Scene space. But that would require an ABI break, and we want this fix to go into 1.3. We also have so few uses for the visualisation state that it seems like overkill at this point.

Fixes GafferHQ#6002.
@johnhaddon johnhaddon self-assigned this Oct 2, 2024
@johnhaddon johnhaddon changed the base branch from main to 1.3_maintenance October 2, 2024 11:05
@johnhaddon johnhaddon merged commit 5c7d9d7 into GafferHQ:1.3_maintenance Oct 3, 2024
5 of 6 checks passed
@johnhaddon johnhaddon deleted the meshLightVisualiserFix branch October 3, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pending release
Development

Successfully merging this pull request may close these issues.

Mesh Light Visualisation Failure Case
2 participants